<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>众秀众筹-项目拆解-众筹项目分析</title>
	<meta name="Keywords" content="众筹项目" />
	<meta name="Description" content="深入分析众筹项目的团队，产品，市场，了解项目潜在的风险。" />
	<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
	<meta name="renderer" content="webkit"/>
	<link rel="stylesheet" href="<%=path%>/css/bootstrap/3.3.5/css/bootstrap.min.css" />
	<link rel="stylesheet" href="<%=path%>/css/cz.css" />

	<script src="<%=path%>/js/jquery-1.11.0.min.js"></script>
	<script src="<%=path%>/js/plugins/layer/layer.js"></script>
	<script src="<%=path%>/js/slider.js"></script>
	<script src="<%=path%>/js/common.js"></script>
<body class="gray-bg">
<jsp:include page="/views/commons/header.jsp"></jsp:include>
<div class="container page-single">
	<div class="col-md-12">
		<div class="panel panel-default">
			<div class="panel-body">
				<form id="analyze_choose_form" action="javascript:void(0)">
				<div class="filter-wrap">
					<d:radio describe="是否收费" tableColumn="charge_state" fieldName="chargeState" 
						value="${paramMap.chargeState}" type="query" queryFunction="queryAnalyzeList"></d:radio>
					<d:radio describe="项目类型" tableColumn="platform_type" fieldName="platformType" 
						value="${paramMap.platformType}" type="query" queryFunction="queryAnalyzeList"></d:radio>
					<dl class="clearfix invest-filter">
						<dt>项目名</dt>
						<dd class="clearfix">
							<div class="col-sm-4 mb20">
								<div class="input-group">
									<input type="text" name="projectName" value="${paramMap.projectName}" class="form-control" placeholder="请输入项目名关键词">
									<span class="input-group-btn">
										<button class="btn btn-primary" type="button" onclick="queryAnalyzeList(1)">搜索</button>
									</span>
								</div>
							</div>
						</dd>
					</dl>
				</div>
				</form>
			</div>
		</div>
		<div class="article ">
			<h2>
				项目拆解列表
				<a href="<%=path%>/check/analyze/beforeIntoInsert" class="btn btn-link">我要折解</a>
				<button class="btn btn-link getdata">折解数据</button>
				<a href="<%=path%>/views/project/project_list.jsp" class="btn btn-link btn-sm">部分项目列表</a>
			</h2>
			<div id="analyze_list_div">
			
			</div>
		</div>
	</div>
</div>
<jsp:include page="/views/commons/footer.jsp"></jsp:include>
</body>
<script type="text/javascript">
$(document).ready(function(){
	queryAnalyzeList(1);
	
	$('.getdata').click(function(event) {
			//iframe窗
		layer.open({
		type: 2,
		title: '折解数据',
		shadeClose: true,
		shade: 0.8,
		area: ['580px','auto'],
		content: '<%=path%>/uncheck/analyze/dataList', 
		
		});
	});
});

function queryAnalyzeList(pageNo){	
	
	var queryData=$("#analyze_choose_form").serialize();
	
	if(queryData==null||queryData==""){
		queryData="pageNo="+pageNo;
	}else{
		queryData=queryData+"&pageNo="+pageNo;
	}
	
	$.ajax({
		url : path + "/uncheck/analyze/list",
		type : "get",
		dataType : "html",
		contentType: "application/x-www-form-urlencoded; charset=utf-8",
		data :queryData,
		success : function(data)
		{
			$("#analyze_list_div").html(data);
		},error:function(){
			layer.msg("服务器网络繁忙",{icon: 2});
		}
	});
}
</script>
</html>